<p>El siguiente listado muestra los tax class elija una para editarlo.</p>

<?php if (count($this->paginator)): ?>
<table class="listclass" width="100%" border="0" cellpadding="0" cellspacing="0">
    <thead>
      <tr>
            <th width="10%" align="left">ID</th>
            <th width="10%" align="left">Titulo</th>
            <th width="10%" align="left">Descripcion</th>
            <th width="10%" align="left">Estado</th>
            <th width="15%" align="left">Fecha de baja</th>
            <th colspan= 2 width="20%" align="left">Accion</th>
      </tr>
    </thead>

    <tbody>
        <?php $i=0; foreach ($this->paginator as $taxclass) : ?>
              <tr class=<?php echo ($i%2==0?'"even clickable"':'"odd clickable"') ?> 
                onclick="document.location='<?=$this->surl( 
        			'taxclass','update', array( 'id' => $taxclass['tax_class_id'] ),  "%s", 'CartPanel');
                ?>'"
              >
                    <td valign="top"><?php echo $taxclass['tax_class_id']; ?></td>
                    <td valign="top"><?php echo $taxclass['title'] ?></td>
                    <td valign="top"><?php echo $taxclass['description'] ?></td>
                    <td valign="top"><?php echo $taxclass['locked']=="T"?"Bloqueado":"Activo" ?></td>
                    <td valign="top"><?php echo is_null($taxclass['end_date'])?"":$taxclass['end_date'] ?></td>
                    <td valign="top">
                        <?php if (is_null($taxclass['end_date'])) : ?>
                            <?php echo $this->href( "taxclass", "delete", "Dar de Baja", array( "id" => $taxclass['tax_class_id'] ), "%s", 'CartPanel' ) ?>
                        <?php else : ?>
                            <?php echo $this->href( "taxclass", "delete", "Reactivar", array( "id" => $taxclass['tax_class_id'] ),  "%s", 'CartPanel' ) ?>
                        <?php endif; ?>
                    </td>	
              </tr>
        <?php $i++; endforeach; ?>
    </tbody>
</table>
<?php echo $this->paginator ?>
<?php endif; ?>
<p>
<?php echo $this->href( "taxclass", "create", "Crear una nueva tax class",array(),  "%s", 'CartPanel' ) ?>
</p>

